//
//  HBJDWebViewController.m
//  HubeiHotel
//
//  Created by 张露杰 on 18/3/19.
//  Copyright © 2018年 张露杰. All rights reserved.
//

#import "HBJDWebViewController.h"

@interface HBJDWebViewController ()

@end

@implementation HBJDWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initTitleWithTitle:_naviTitle?_naviTitle:@"详情"];
    UIWebView *web = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, SCREENW, SCREENH - 64)];
    [web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_url]]];
    [self.view addSubview:web];
}

-(void)onTapLeftBarButton
{
    if (self.navigationController.viewControllers.count == 1) {
        [self.navigationController dismissViewControllerAnimated:YES completion:nil];
    }else{
        [self.navigationController popViewControllerAnimated:YES];
    }
}

@end
